package com.design.adapter;

/**
 * @author cxx
 * @create 2020-04-21 10:58
 **/
public class SuperMan implements Person {

    private String name;

    public SuperMan(Man man) {
        this.name=man.getName ();
    }

    public void fly(){
        System.out.println (name+":fly...");
    }


    @Override
    public void run() {
        fly ();
    }
}
